package com.mzj.saas.mservice.sys.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/*
*app用户表
 */
@Entity
@Table(name = "saas_app_user")
public class AppUser {
	/*
	 * 用户Id
	 */
	@Id
	private String id;

	/*
	 * 普通用户id
	 */
	@Column(name = "enterprise_user_id", nullable = true)
	private String enterpriseUserId;

	/*
	 * 姓名
	 */
	@Column(name = "name", nullable = true)
	private String name;
	/*
	 * 手机
	 */
	@Column(name = "phone", nullable = true)
	private String phone;
	/*
	 * 密码
	 */
	@Column(name = "password", nullable = true)
	private String password;
	/*
	 * 盐值
	 */
	@Column(name = "salt", nullable = true)
	private String salt;
	/*
	 * 微信OPENID
	 */
	@Column(name = "openid", nullable = true)
	private String openId;
	/*
	 * IOS-OPENID
	 */
	@Column(name = "ios_openid", nullable = true)
	private String iosOpenId;
	/*
	 * 微信昵称
	 */
	@Column(name = "nickname", nullable = true, columnDefinition = "mediumblob")
	private byte[] nickName;
	/*
	 * 身份类型：1 企业用户 2APP用户
	 */
	@Column(name = "type", nullable = true)
	private Integer type;

	@Column(name = "card_number", nullable = true)
	private String cardNumber;// 身份证号码

	@Column(name = "front_card_number_pic", nullable = true)
	private String frontCardNumberPic;// 身份证正面

	@Column(name = "back_card_number_pic", nullable = true)
	private String backCardNumberPic;// 身份证背面

	@Column(name = "face_pic", nullable = true)
	private String facePic;// 人脸照

	@Column(name = "certify_id", nullable = true)
	private String certifyId;// 实人认证ID

	/*
	 * 实名认证：0未认证 1已认证
	 */
	@Column(name = "certification_status", nullable = true)
	private Integer certificationStatus;
	/*
	 * 状态：0禁用 1启用  2删除 4注销
	 */
	@Column(name = "status", nullable = true)
	private Integer status;
	/*
	 * 注册时间
	 */
	@Column(name = "registration_time", nullable = true)
	private Date registrationTime;

	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	/*
	 * 企业名称
	 */
	@Column(name = "department_name", nullable = true)
	private String departmentName;


	/*
	 * 身份证内容
	 */
	@Column(name = "id_card_content", nullable = true)
	private String idCardContent;



	public String getCertifyId() {
		return certifyId;
	}

	public void setCertifyId(String certifyId) {
		this.certifyId = certifyId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public byte[] getNickName() {
		return nickName;
	}

	public void setNickName(byte[] nickName) {
		this.nickName = nickName;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getCertificationStatus() {
		return certificationStatus;
	}

	public void setCertificationStatus(Integer certificationStatus) {
		this.certificationStatus = certificationStatus;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getRegistrationTime() {
		return registrationTime;
	}

	public void setRegistrationTime(Date registrationTime) {
		this.registrationTime = registrationTime;
	}

	public String getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	public String getFrontCardNumberPic() {
		return frontCardNumberPic;
	}

	public void setFrontCardNumberPic(String frontCardNumberPic) {
		this.frontCardNumberPic = frontCardNumberPic;
	}

	public String getBackCardNumberPic() {
		return backCardNumberPic;
	}

	public void setBackCardNumberPic(String backCardNumberPic) {
		this.backCardNumberPic = backCardNumberPic;
	}

	public String getFacePic() {
		return facePic;
	}

	public void setFacePic(String facePic) {
		this.facePic = facePic;
	}

	public String getEnterpriseUserId() {
		return enterpriseUserId;
	}

	public void setEnterpriseUserId(String enterpriseUserId) {
		this.enterpriseUserId = enterpriseUserId;
	}

	public String getIosOpenId() {
		return iosOpenId;
	}

	public void setIosOpenId(String iosOpenId) {
		this.iosOpenId = iosOpenId;
	}

	public String getIdCardContent() {
		return idCardContent;
	}

	public void setIdCardContent(String idCardContent) {
		this.idCardContent = idCardContent;
	}
}
